package com.ruoyi.web.controller.system;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.system.service.ISysHouseService;

@RestController
@RequestMapping("/api/house")
public class SysHouseController extends BaseController {
    
    @Autowired
    private ISysHouseService houseService;

    @GetMapping("/list")
    public AjaxResult list() {
        return AjaxResult.success(houseService.selectHouseList());
    }
} 